package com.snoob.baseFeign.service.serviceLog;

import com.snoob.springcloudalibaba.base.BaseLogEntity;
import com.snoob.springcloudalibaba.base.BasePageResult;
import com.snoob.springcloudalibaba.pipleline.qo.SelectSysLogQo;
import com.snoob.springcloudalibaba.pipleline.vo.DeleteSysLogVoReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @描述：基于系统日志的远程调用
 * @作者：lixing_java@163.com
 * @时间：2022/8/14 20:17
 */
/*
 * value值为服务名称：spring:application:name
 * path值为上下文名称开头：server:servlet:context-path
 */
@FeignClient(value="serviceLog", path = "log/sysLog")
public interface ServiceLogFeign {
    /** 添加日志信息 */
    @PostMapping("insertSysLog")
    Long insertSysLog(@RequestBody BaseLogEntity baseLogEntity);

    /** 删除日志信息 */
    @PostMapping("deleteSysLog")
    Boolean deleteSysLog(@RequestBody DeleteSysLogVoReq vo);

    /** 查询日志信息 */
    @PostMapping("selectSysLog")
    BaseLogEntity selectSysLog(@RequestBody SelectSysLogQo qo);

    /** 分页查询企业信息  */
    @PostMapping("selectEnterpriseByPage")
    BasePageResult<BaseLogEntity> selectEnterpriseByPage(@RequestBody SelectSysLogQo qo);
}
